<?php
namespace app\index\controller;

use app\common\service\Config;
use think\Controller;

class Base extends Controller
{

    public function _initialize()
    {
        parent::_initialize();

        $currRoute = $this->request->routeInfo();

        $this->assign('currRoute',$currRoute);

        //读取全局配置

        $confService = new Config();
        $config = $confService->getMany(['site_name','site_email','site_qq','site_tel','site_copyright','site_address','site_logo','site_contact_us']);

        $this->assign('config',$config);

    }


}
